package com.ruoyi.order.service;

import java.util.List;
import com.ruoyi.order.domain.BookReservationOrder;

/**
 * 预约借阅订单Service接口
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
public interface IBookReservationOrderService 
{
    /**
     * 查询预约借阅订单
     * 
     * @param orderId 预约借阅订单主键
     * @return 预约借阅订单
     */
    public BookReservationOrder selectBookReservationOrderByOrderId(Long orderId);

    /**
     * 查询预约借阅订单列表
     * 
     * @param bookReservationOrder 预约借阅订单
     * @return 预约借阅订单集合
     */
    public List<BookReservationOrder> selectBookReservationOrderList(BookReservationOrder bookReservationOrder);

    /**
     * 新增预约借阅订单
     * 
     * @param bookReservationOrder 预约借阅订单
     * @return 结果
     */
    public int insertBookReservationOrder(BookReservationOrder bookReservationOrder);

    /**
     * 修改预约借阅订单
     * 
     * @param bookReservationOrder 预约借阅订单
     * @return 结果
     */
    public int updateBookReservationOrder(BookReservationOrder bookReservationOrder);

    /**
     * 批量删除预约借阅订单
     * 
     * @param orderIds 需要删除的预约借阅订单主键集合
     * @return 结果
     */
    public int deleteBookReservationOrderByOrderIds(Long[] orderIds);

    /**
     * 删除预约借阅订单信息
     * 
     * @param orderId 预约借阅订单主键
     * @return 结果
     */
    public int deleteBookReservationOrderByOrderId(Long orderId);

    /**
     * 查询预约借阅订单信息根据bookId
     * @param bookId 书籍编号
     * @return BookReservationOrder对象
     */
    BookReservationOrder selectBookReservationOrderByBookId(Long bookId);
}
